@extends('layouts.app')

@section('content')
<div class="container" style="margin:50px auto;overflow-x:hidden;">
<div class="row">
	<div class="col-md-12 col-md-offset-2" style="padding:0">
		<div class="panel panel-default">
			<div class="panel-heading" style="text-indent:5px;">公告</div>
			<div class="panel-body">
				<ul class="list-group">
					@foreach($articles as $article)
						<li class="list-group-item clearfix">
							<a href="{{ url('/news/detail',['id'=>$article->id]) }}">
								<span class="left newsleft">{{ $article->title }}</span>
								<span class="right newsright">{{ $article->updated_at->toDateString() }}</span>
							</a>
						</li>
						@endforeach
								<!-- <li class="list-group-item clearfix">
		    	<a href="#">
		    	<span class="left newsleft">标题标题标题标题标题标题</span>
		    	<span class="right newsright">2016-10-15</span>
		    	</a>
		    </li>
		    <li class="list-group-item clearfix">
		    	<a href="#">
		    	<span class="left newsleft">标题标题标题标题标题标题</span>
		    	<span class="right newsright">2016-10-15</span>
		    	</a>
		    </li> -->
				</ul>
			</div>
			{!! $articles->links() !!}
		</div>
	</div>
</div>
</div>
@endsection
